﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BGMasterPage.master" AutoEventWireup="true"
    CodeFile="SystemConfig.aspx.cs" Inherits="SystemConfig" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="Server">
    <style type="text/css">
        .panelTitle
        {
            border-bottom: 1px solid rgb(153, 153, 153);
            width: 98%;
            padding: 5px;
        }
        .checkboxPanel
        {
            margin: 10px;
        }
        .checkboxPanel span
        {
            display: inline-block;
            margin: 0px 5px;
        }
        .workTimePanel
        {
            margin: 20px 10px;
        }
        .workTimePanel .item
        {
            display: inline-block;
            margin: 0px 5px;
        }
    </style>
    <link type="text/css" href="Styles/jquery-ui-timepicker-addon.css" />
    <script src="Scripts/jquery-ui-sliderAccess.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui-timepicker-zh-CN.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="Server">
    <div class="panelTitle">
        请设置工作时间：</div>
    <div class="workTimePanel">
        <div class="item">
            <span>星期一</span><span>上班时间：<input type="text" id="beginDay1" name="beginDay1" value="<%=workTime.BeginTime[0] %>" /></span><span>下班时间：<input
                type="text" id="endDay1" name="endDay1" value="<%=workTime.EndTime[0] %>" /></span></div>
        <div class="item">
            <span>星期二</span><span>上班时间：<input type="text" id="beginDay2" name="beginDay2" value="<%=workTime.BeginTime[1] %>" /></span><span>下班时间：<input
                type="text" id="endDay2" name="endDay2" value="<%=workTime.EndTime[1] %>" /></span></div>
        <div class="item">
            <span>星期三</span><span>上班时间：<input type="text" id="beginDay3" name="beginDay3" value="<%=workTime.BeginTime[2] %>" /></span><span>下班时间：<input
                type="text" id="endDay3" name="endDay3" value="<%=workTime.EndTime[2] %>" /></span></div>
        <div class="item">
            <span>星期四</span><span>上班时间：<input type="text" id="beginDay4" name="beginDay4" value="<%=workTime.BeginTime[3] %>" /></span><span>下班时间：<input
                type="text" id="endDay4" name="endDay4" value="<%=workTime.EndTime[3] %>" /></span></div>
        <div class="item">
            <span>星期五</span><span>上班时间：<input type="text" id="beginDay5" name="beginDay5" value="<%=workTime.BeginTime[4] %>" /></span><span>下班时间：<input
                type="text" id="endDay5" name="endDay5" value="<%=workTime.EndTime[4] %>" /></span></div>
        <div class="item">
            <span>星期六</span><span>上班时间：<input type="text" id="beginDay6" name="beginDay6" value="<%=workTime.BeginTime[5] %>" /></span><span>下班时间：<input
                type="text" id="endDay6" name="endDay6" value="<%=workTime.EndTime[5] %>" /></span></div>
        <div class="item">
            <span>星期日</span><span>上班时间：<input type="text" id="beginDay7" name="beginDay7" value="<%=workTime.BeginTime[6] %>" /></span><span>下班时间：<input
                type="text" id="endDay7" name="endDay7" value="<%=workTime.EndTime[6] %>" /></span></div>
    </div>
    <div class="panelTitle">
        以下分组不可登录系统：</div>
    <div class="checkboxPanel">
        <%foreach (var item in GroupList)
          { %>
        <span>
            <input type="checkbox" id="Groups" name="Groups" value="<%=item.ID %>" <%=item.IsSelected?"checked='checked'":"" %> /><%=item.Name %></span>
        <%} %>
    </div>
    <div class="panelTitle">
        以下用户不可登录系统：</div>
    <div class="checkboxPanel">
        <%foreach (var item in UserList)
          { %>
        <span>
            <input type="checkbox" id="Users" name="Users" value="<%=item.ID %>" <%=item.IsSelected?"checked='checked'":"" %> /><%=item.Username %></span>
        <%} %>
    </div>
        <div class="panelTitle">
        系统配置：</div>
    <div class="checkboxPanel">
        <span>
            <input type="checkbox" id="IsDebug" name="IsDebug" value="0" <%=Manager.Configure.IsDebug?"checked='checked'":"" %> />调试模式</span>
    </div>
    <div class="operationPanel">
        <asp:Label ID="Message" runat="server" Text="保存出错了，请重试或联系管理员！" Visible="False" CssClass="ErrorMessage"></asp:Label>
        <asp:Button ID="submit" Text="保存" runat="server" OnClick="submit_Click" class="ui-button ui-submit" />
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Bottom" runat="Server">
    <script type="text/javascript">
        $(function () {
            //$(".item>span>input").each(function () { $(this).attr("readonly", ""); });
            $(".item>span>input").timepicker();
        });
    </script>
</asp:Content>
